package com.cykj.pos.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.ToString;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
import java.util.HashMap;
import java.util.Map;

/**
 * 机具返现模板
 *
 * @author zephyr
 * @date 2025-01-20
 */
@Data
@ToString
@EqualsAndHashCode
@NoArgsConstructor
@Accessors(chain = true)
@TableName("tool_cashback_template")
public class ToolCashbackTemplate implements Serializable {

    private static final long serialVersionUID=1L;

    /** 主键 */
    @TableId(value = "id")
    private Long id;

    private BigDecimal activeAmount;//激活设置 激活金额

    private String activeExpireTime;//激活设置 激活截至时间

    private BigDecimal bogusActiveAmount;//激活设置 伪激活金额

    private Long bogusActiveExamineDays;//激活设置 伪激活考核天数 0为不考核

    private BigDecimal bogusActiveAccumulateAmount;//激活设置 伪激活累计交易

    private BigDecimal bogusActiveDeduction;//激活设置 伪激活扣款

    private BigDecimal notActiveDeduction;//激活设置 未激活扣款

    private BigDecimal standardAmount;//达标设置 达标条件(收款满)  设置满多少金额

    private Long standardExpireDays;//达标设置 达标截至时间(激活后)  设置多少天  填0则不返现

    private String circularCashback;//循环返现 开关按钮 0不循环1循环

    private String var1;

    private BigDecimal var2;//活动返现

    private BigDecimal var3;//达标返现

    @TableField(exist = false)
    private Map<String, Object> params = new HashMap<>();
}
